function doAjax(tableID,sum){
    let Id=$("#"+tableID);
    Id.append(setThead(sum));
    Id.append(addTbody(Id));
}
function setThead(sum){
    let thead=$("<thead></thead>");
    let tr=$("<tr></tr>");
    for(let i=0;i<sum.length;i++){
        let td=$("<td></td>");
        td.html(sum[i].title);
        tr.append(td);
    }
    thead.append(tr);
    return thead;
}
function addTbody(Id){
    let cols=Id.find("thead>tr>th").length;
    return `<tbody>
                <tr>
                    <td colspan='${cols}'>Data is loading....</td>
                </tr>
            </tbody>`;
}